package com.example.spring;

import com.example.spring.filter.LogFilter;
import com.example.spring.filter.LoginFilter;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
@EnableZuulProxy
@EnableEurekaClient
public class GatewayApplication {

	public static void main(String[] args) {
		SpringApplication.run(GatewayApplication.class, args);
	}

	@Bean
	public LoginFilter loginFilter() {
		return new LoginFilter();
	}

	@Bean
	public LogFilter logFilter() {
		return new LogFilter();
	}

}
